package com.revenco.bi.util;

import java.util.LinkedHashMap;
import java.util.Map;

import com.revenco.bi.model.userbean.ShowSql;

/**
 * bean转成json
 * 
 * @author zhaozz
 * 
 */
public class Bean2Json {
	public String sqlJson(ShowSql ss) {
		JsonBinder binder = new JsonBinder();
		Map<String, Object> map = new LinkedHashMap<String, Object>();
		map.put("success", ss.getSuccess());
		map.put("msg", ss.getMsg());
		map.put("sql", ss.getSql());
		return binder.toJson(map);
	}
}
